-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Improves model info detection for custom Bedrock ARNs #3799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improves model info detection for custom Bedrock ARNs #3799
Conversation
Adds heuristics to better estimate model capabilities when using unknown or custom model ARNs, including context window and max tokens. Allows user overrides for key model parameters via provider settings, improving flexibility and reliability for non-standard model integrations. Fixes RooCodeInc#3712
Provides more informative error messages for JSON syntax errors by extracting the error position and formatting it for clarity during import. Enhances user feedback when invalid JSON is encountered.
|
@mrubens LGTM |
PR RooCodeInc#3009 has an important fix, alerted to me by @jbbrown It was a one liner so I pulled it in. This brings up a question can we merge PR's in the GH UI?
|
Hey @adamhill, this looks good to me, I think you just need to solve the merge conflicts and we are good to go. |
Kept previous parameters, did not see any changes in those.
mrubens
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has anyone tested this yet? I think we need to find someone to confirm that it works before we merge. Thank you! cc: @hannesrudolph
Rony did. |
Related GitHub Issue
Closes: #3712
Description
Test Procedure
Untested.- No Bedrock Credentials.
Type of Change
srcor test files.Pre-Submission Checklist
npm run lint).console.log) has been removed.npm test).mainbranch.npm run changesetif this PR includes user-facing changes or dependency updates.Screenshots / Videos
Documentation Updates
Additional Notes
First PR unable to test w/o Bedrock credentials
Get in Touch
@GodelEscherSpock (discord)
@adamhill (github)
Important
Enhances model info detection for custom Bedrock ARNs with heuristics and user overrides, and updates
ProviderSettingsto includeawsModelContextWindow.guessModelInfoFromId()inAwsBedrockHandlerinbedrock.tsto estimate model capabilities for unknown/custom ARNs.maxTokensandcontextWindowviaProviderSettings.awsModelContextWindowtoProviderSettingsinroo-code.d.tsandtypes.ts.bedrockSchemainschemas/index.tsto includeawsModelContextWindow.This description was created by
for e4a4685. You can customize this summary. It will automatically update as commits are pushed.